home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / cups / dir.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-10-21  |  1.5 KB  |  69 lines

  1. /*
  2.  * "$Id: dir.h 7721 2008-07-11 22:48:49Z mike $"
  3.  *
  4.  *   Public directory definitions for the Common UNIX Printing System (CUPS).
  5.  *
  6.  *   This set of APIs abstracts enumeration of directory entries.
  7.  *
  8.  *   Copyright 2007 by Apple Inc.
  9.  *   Copyright 1997-2006 by Easy Software Products, all rights reserved.
  10.  *
  11.  *   These coded instructions, statements, and computer programs are the
  12.  *   property of Apple Inc. and are protected by Federal copyright
  13.  *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
  14.  *   which should have been included with this file.  If this file is
  15.  *   file is missing or damaged, see the license at "http://www.cups.org/".
  16.  */
  17.  
  18. #ifndef _CUPS_DIR_H_
  19. #  define _CUPS_DIR_H_
  20.  
  21.  
  22. /*
  23.  * Include necessary headers...
  24.  */
  25.  
  26. #  include <sys/stat.h>
  27.  
  28.  
  29. /*
  30.  * C++ magic...
  31.  */
  32.  
  33. #  ifdef __cplusplus
  34. extern "C" {
  35. #  endif /* __cplusplus */
  36.  
  37.  
  38. /*
  39.  * Data types...
  40.  */
  41.  
  42. typedef struct _cups_dir_s cups_dir_t;    /**** Directory type ****/
  43.  
  44. typedef struct cups_dentry_s        /**** Directory entry type ****/
  45. {
  46.   char        filename[260];        /* File name */
  47.   struct stat    fileinfo;        /* File information */
  48. } cups_dentry_t;
  49.  
  50.  
  51. /*
  52.  * Prototypes...
  53.  */
  54.  
  55. extern void        cupsDirClose(cups_dir_t *dp);
  56. extern cups_dir_t    *cupsDirOpen(const char *directory);
  57. extern cups_dentry_t    *cupsDirRead(cups_dir_t *dp);
  58. extern void        cupsDirRewind(cups_dir_t *dp);
  59.  
  60.  
  61. #  ifdef __cplusplus
  62. }
  63. #  endif /* __cplusplus */
  64. #endif /* !_CUPS_DIR_H_ */
  65.  
  66. /*
  67.  * End of "$Id: dir.h 7721 2008-07-11 22:48:49Z mike $".
  68.  */
  69.